package com.deluxelx.rmo.essay.domain.rule.logic.impl;

import com.deluxelx.rmo.common.constants.DecisionKey;
import com.deluxelx.rmo.essay.domain.rule.logic.BaseLogic;
import com.deluxelx.rmo.essay.model.req.DecisionMakingReq;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class UserSentimentFilter extends BaseLogic {

    @Override
    public String getDecisionValue(DecisionMakingReq decisionMakingReq) {
        return decisionMakingReq.getValMap().get(DecisionKey.USER_SENTIMENT).toString();
    }

    @PostConstruct
    public void init() {
        logicFilterMap.put(DecisionKey.USER_SENTIMENT, this);
    }

}
